import React, { Component } from 'react'

class Right extends Component {
    render() {
        let { list, i } = this.props
        return (
            <div className='Right'>
                {
                    list && list.length ? list[i].children.map((item, index) => {
                        return (
                            <div key={index}>
                                <img src={item.img} alt='' />
                                <h2>{item.time}</h2>
                                <h2>{item.language}</h2>
                                <h2>{item.num}</h2>
                                <h2 style={{ color: 'red' }}>￥{item.price}</h2>
                                <h2>余位{item.yupiao}%</h2>
                            </div>
                        )
                    }) : <div>暂无数据</div>
                }
            </div>
        )
    }
}

export default Right